package com.ruoyi.common.core.request;

import com.ruoyi.common.utils.validator.groups.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分页 bo
 *
 * @author ruoyi
 **/
@ApiModel
@EqualsAndHashCode(callSuper = false)
@Data
public class BasePageBO extends BaseBO {

    @NotNull(message = "当前页不能为空", groups = {Page.class})
    @ApiModelProperty(value = "当前页", required = true, example = "1")
    private Integer pageNum;

    @NotNull(message = "每页的数量", groups = {Page.class})
    @ApiModelProperty(value = "每页的数量", required = true, example = "20")
    private Integer pageSize;
    /**
     * 排序列
     */
    private String orderByColumn;

}
